package com.dotflat.fin.PO;

import com.dotflat.rest.PO.AreableObjectBasePO;
import com.dotflat.rest.utils.ReadonlyField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;

/**
 * 退费记录
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class RefundRecordItemPO extends AreableObjectBasePO {

    @Column(columnDefinition = "varchar(32) COMMENT '退款单 id'")
    @ApiModelProperty("记录 id")
    private String recordId;

    @ApiModelProperty(value = "合同 id")
    private String contractId;

    @ApiModelProperty("退费项目")
    private String title;

    @ApiModelProperty("项目说明")
    private String description;

    @ApiModelProperty("原支付金额")
    @ReadonlyField
    private Long amount = 0L;

    @ApiModelProperty("退费金额")
    private Long refundAmount = 0L;

    @ApiModelProperty("退费说明")
    private String refundRemark;

}